import request from '@/axios'

interface UserPageParams {
  pageNo: number
  pageSize: number
  name: string
  username: string
  userType: string
}
export const userListApi = (params: UserPageParams): Promise<IResponse<string[]>> => {
  return request.post({ url: '/api/user/list', params })
}

export const userEnableApi = (data: any): Promise<IResponse<string[]>> => {
  return request.post({ url: '/api/user/enable', data })
}

export const userDisableApi = (data: any): Promise<IResponse<string[]>> => {
  return request.post({ url: '/api/user/disable', data })
}
